<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<div class="col-md-3">
	<div class="row">
		<aside class="sidebar_met_16_1 met-sidebar panel panel-body m-b-0"
			boxmh-h m-id='14' m-type='nocontent'>
		<div class="form-group">
			<c:choose>
			<c:when test="${!empty type and !empty all}">
				<c:set var="leftSearchForm" value="${basePath }/${type }?all=${all}" />
			</c:when>
			<c:otherwise>
				<c:set var="leftSearchForm" value="${basePath }/list?all=list" />
			</c:otherwise>
			</c:choose>
			<form method="post" id="leftSubmitForm" action="${leftSearchForm }" target="_blank">
				<div class="input-search">
					<button type="button" onclick="submitSearchForm1()" class="input-search-btn">
						<i class="icon wb-search" aria-hidden="true"></i>
					</button>
					<input type="text" class="form-control" name="keyword"
						placeholder="search" />
				</div>
			</form>
		</div>
		<script>
			var submitSearchForm1 = function(){
				if(leftSubmitForm.keyword.value.replace(/\s/g,'').length > 0){
					leftSubmitForm.submit();
				}
			};
		</script>
		<ul class="sidebar-column list-icons">
			<c:if test="${!empty menuList}">
				<c:forEach items="${menuList }" var="menu" varStatus="status">
					<c:choose>
						<c:when test="${status.first}">
							<li><a href="${basePath}/${menu.key}?all=${menu.key}"
								title="${menu.showName }" class="active" target='_self'>${menu.showName }</a>
							</li>
						</c:when>
						<c:otherwise>
							<li><a href="${basePath}/${menu.key}?all=${menu.key}"
								title="${menu.showName }" target='_self'>${menu.showName }</a>
							</li>
						</c:otherwise>
					</c:choose>
				</c:forEach>
			</c:if>
		</ul>
		<c:if test="${!empty recommendPage.records }">
			<div class="sidebar-news-list recommend">
				<h3 class='font-size-16 m-0'>为你推荐</h3>
				<ul class="list-group list-group-bordered m-t-10 m-b-0">
					<c:forEach items="${recommendPage.records }" var="article">
						<li class="list-group-item"><a
							href="${basePath}/article/detail/${article.seqId }"
							title="${article.title }" target="_self">${article.title }</a></li>
					</c:forEach>
				</ul>
			</div>
		</c:if> </aside>
	</div>
</div>